package com.arpa.wms.domain.dto;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * <p>
 * 批次规则DTO
 * </p>
 *
 * @author LEO
 * @since 2020-08-11
 */
@Data
@ApiModel(value="BatchRuleDTO对象", description="批次规则")
public class BatchRuleFormDTO  implements Serializable {


    @ApiModelProperty(value = "数据标识")
    private String code;

    @ApiModelProperty(value = "所属货主")
    private String shipmentCode;

    @ApiModelProperty(value = "名称")
    @Length(max = 100, message = "名称长度不能大于100个字符", groups = {Save.class, Update.class})
    private String name;

    @ApiModelProperty(value = "批次")
    private Integer lot;

    @ApiModelProperty(value = "生产日期")
    private Integer gmtManufacture;

    @ApiModelProperty(value = "过期日期")
    private Integer gmtExpire;

    @ApiModelProperty(value = "存货日期")
    private Integer gmtStock;

    @ApiModelProperty(value = "供应商")
    private Integer supplier;

    @ApiModelProperty(value = "序列号")
    private Integer serialNumber;

    @ApiModelProperty(value = "扩展1")
    private Integer extendOne;

    @ApiModelProperty(value = "扩展2")
    private Integer extendTwo;

    @ApiModelProperty(value = "扩展3")
    private Integer extendThree;

    @ApiModelProperty(value = "扩展4")
    private Integer extendFour;

    @ApiModelProperty(value = "扩展5")
    private Integer extendFive;

    @ApiModelProperty(value = "扩展6")
    private Integer extendSix;

    @ApiModelProperty(value = "状态")
    private String state;

    @ApiModelProperty(value = "备注")
    @Length(max = 100, message = "备注长度不能大于100个字符", groups = {Save.class, Update.class})
    private String remarks;

    public interface Save{}
    public interface Update{}

}
